export function useOfflineData() {
  var categroy = [
    {
      node_id: 1,
      name: "信息技术",
      parent: 0,
      children: [
        {
          node_id: 2,
          name: "电子设备",
          parent: 1,
          children: [
            { node_id: 5, name: "资源设备", parent: 2, children: [] },
            {
              node_id: 6,
              name: "通信设备",
              parent: 2,
              children: [
                { node_id: 7, name: "交换机", parent: 6, children: [] },
              ],
            },
          ],
        },
        { node_id: 3, name: "软件", parent: 1, children: [] },
        {
          node_id: 4,
          name: "抽象概念",
          parent: 1,
          children: [
            { node_id: 8, name: "网络", parent: 4, children: [] },
            { node_id: 9, name: "计算机通信互联模型", parent: 4, children: [] },
          ],
        },
      ],
    },
  ];
  var pages = {
    3: [
      [6, "编码", "#test", 3],
      [7, "程序", "#test", 3],
      [8, "代码", "#test", 3],
    ],
    4: [[11, "网络防火墙", "#test", 4]],
    5: [
      [1, "服务器", "#test", 5],
      [2, "PC", "#test", 5],
    ],
    6: [[3, "路由器", "#test", 6]],
    7: [
      [4, "二层交换机", "#test", 7],
      [5, "三层交换机", "#test", 7],
    ],
    8: [
      [9, "互联网(外网)", "#test", 8],
      [10, "局域网(内网)", "#test", 8],
    ],
    9: [
      [12, "OSI七层", "#test", 9],
      [13, "TCP/IP", "#test", 9],
    ],
  };
  var offline_data = { categroy: categroy, pages: pages };
  return offline_data;
}
